.role-list {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 24rpx 0 0;

  &-header {
    padding: 0 32rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

    &-title {
      font-family: PingFangSC-Medium;
      font-size: 36px;
      color: #262626;
      line-height: 52rpx;
      font-weight: 600;
      max-width: 300rpx;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    &-close {
      position: absolute;
      right: 32rpx;
      top: 50%;
      transform: translateY(-50%);
      width: 27rpx;
      height: 25rpx;
      float: right;
    }
  }
  &-box {
    padding: 0 32rpx;
    margin-top: 16rpx;
    display: flex;
    flex-direction: column;
    max-height: 500rpx;
    overflow-y: auto;

    &-item {
      border-bottom: 1rpx solid #f0f0f0;
      display: flex;
      padding: 24rpx 0;
      align-items: center;
      justify-content: space-between;

      &-roleName {
        font-family: PingFangSC-Regular;
        font-size: 32rpx;
        color: #262626;
        text-align: left;
        line-height: 48rpx;
        font-weight: 400;
        max-width: 300rpx;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      &-seletedIcon {
        width: 32rpx;
        height: 32rpx;
      }
    }

    &-selected {
      .role-list-box-item-roleName {
        color: #0840f8 !important;
      }
    }
  }
}
